<template>
  <basic-container>
    <deskTable :tableData="option"></deskTable>
  </basic-container>
</template>

<script>
  import { getDownList } from "../../api/index";
  import deskTable from './component/table'
  import website from '@/config/website';
  export default {
    data() {
      return {
        form: {},
        query: {},
        loading: true,
        page: {
          pageSize: 10,
          currentPage: 1,
          total: 0
        },
        selectionList: [],
        option: {
          height: 'auto',
          calcHeight: 30,
          menu:true,
          tip: false,
          searchShow: true,
          searchMenuSpan: 6,
          border: true,
          index: true,
          indexLabel:'序号',
          viewBtn: true,
          selection: false,
          excelBtn: false,
          delBtn: false,
          editBtn: false,
          addBtn:false,
          refreshBtn:false,
          columnBtn:false,
          dialogType: website.dialogType,
          dialogDirection: website.dialogDirection,
          dialogWidth: website.dialogWidth,
          dialogClickModal: false,
          column: [
            {
              label: "工具名称",
              prop: "title",
              span: 24,
              row: true,
              search: true,
              rules: [{
                required: true,
                message: "请输入工具名称",
                trigger: "blur"
              }]
            },
            {
              label: "工具类型",
              type: "select",
              dicUrl: "/api/dis-sys/dict/dictionary?code=tool_category",
              props: {
                label: "dictValue",
                value: "dictKey"
              },
              dataType: "string",
              slot: true,
              prop: "category",
              search: true,
              rules: [{
                required: true,
                message: "请输入工具类型",
                trigger: "blur"
              }]
            },
            {
              label: "发布时间",
              prop: "releaseTime",
              type: "date",
              format: "yyyy-MM-dd hh:mm:ss",
              valueFormat: "yyyy-MM-dd hh:mm:ss",
              rules: [{
                required: true,
                message: "请输入发布时间",
                trigger: "click"
              }]
            },
            {
              label: "工具描述",
              prop: "content",
              component: 'AvueUeditor',
              options: {
                action: '/api/blade-resource/oss/endpoint/put-file',
                props: {
                  res: "data",
                  url: "link",
                }
              },
              hide: true,
              minRows: 6,
              span: 24,
            },
            {
              label: "附件",
              prop: "file",
              type: 'content',
              loadText: '',
              span: 24,
              // tip: '请上传 bpmn20.xml 标准格式文件',
              action: '/api/blade-flow/manager/check-upload'
            }
          ],
          action:{
            getList:getDownList
          }
        },
        dataNotice: []
      };
    },
    components: {
      deskTable
    },
    computed: {

    },
    methods: {

    },
  };
</script>

<style>
</style>
